/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ac.za.cput.hotelbooking.model;

import java.io.Serializable;
import java.math.BigDecimal;
import javax.persistence.Embedded;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 *
 * @author Andisiwe
 */
public class Hotel implements Serializable {
    private static final long serialVersionUID = 1L;
    @Embedded
    private HotalName hotalName;
    
    @Embedded
    private HotalAddress hotalAddress;
    
    private String Code;
    private String RoomCode;
    private BigDecimal BreakFastPrice;
    private BigDecimal LunchPrice;
    private BigDecimal Supper;
    
   @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    
   
     public String  getCode(){
         return Code;
     }   
     
     public void  setCode(String code ){
         this.Code = code; 
     }
     public String getRoomCode(){
         return RoomCode;
     }
     public void setRoomCode(String RoomCode){
         this.RoomCode = RoomCode;
     }
     public BigDecimal getBreakFastPrice( ){
         return BreakFastPrice;
     }
     public void setBreakFastPrice(BigDecimal BreakFastPrice){
         this.BreakFastPrice = BreakFastPrice;
     }
     public BigDecimal getLunchPrice(){
              return BreakFastPrice;
        }
    public void setLunchPrice(BigDecimal LunchPrice ){
        this.LunchPrice = LunchPrice;
        
    }
    public void setSupper (BigDecimal Supper  ){
        this.Supper = Supper; 
    }
    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Hotel )) {
            return false;
        }
        Hotel  other = (Hotel) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "ac.za.cput.hotelbooking.model.Hotel[ id=" + id + " ]";
    }
}
